define([], function () {
    function initialize() {
        setTimeout(function () {
            layui.util.fixbar({
                bar1: true,
                showHeight: 200,
                css: {right: 20, bottom: 30},
                click: function (type) {
                    if (type === 'bar1') {
                        alert('点击了bar1')
                    }
                }
            });
        }, 200);

        return {
            clickExitBtn: function () {
                ko.dataFor($('body')[0]).currentPage('template/login');
            }
        };
    }

    return {
        initialize: initialize
    }
});